package com.bnlr.lrparking.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.bnlr.lrparking.R;
import com.bnlr.lrparking.model.StallHeaderGridBean;

import java.util.List;

/**
 *
 * @author tian
 * @date 2017/10/19
 */

public class StallHeaderGirdAdapter extends BaseQuickAdapter<StallHeaderGridBean,BaseViewHolder> {
    public StallHeaderGirdAdapter(@Nullable List<StallHeaderGridBean> data) {
        super(R.layout.stall_header_grid_layout,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, StallHeaderGridBean item) {
        helper.setText(R.id.tv_item_stall_header_grid,item.getName());
        helper.setImageResource(R.id.iv_item_stall_header_grid,item.getImgRes());
    }
}
